package com.teamall.web.tssy.db.dao.mapper;

import com.teamall.web.tssy.db.arg.TsSyResourceArg;
import com.teamall.web.tssy.db.po.TsSyResourcePO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ITsSyResourceMapper {
    
    List<Integer> countByArg(TsSyResourceArg arg);

    List<TsSyResourcePO> selectByArg(TsSyResourceArg arg);

    TsSyResourcePO selectByPrimaryKey(String id);

    List<TsSyResourcePO> selectByArgAndPage(TsSyResourceArg arg, RowBounds rowBound);

    int insert(TsSyResourcePO record);

    int insertSelective(TsSyResourcePO record);

    int insertBatch(@Param("list") List<TsSyResourcePO> records);

    int updateByArgSelective(@Param("record") TsSyResourcePO record,
            @Param("arg") TsSyResourceArg arg);

    int updateByArg(@Param("record") TsSyResourcePO record,
            @Param("arg") TsSyResourceArg arg);

    int updateByPrimaryKeySelective(TsSyResourcePO record);

    int updateByPrimaryKeys(TsSyResourcePO record);
    
    int updateByPrimaryKey(TsSyResourcePO record);
    
    int deleteByArg(TsSyResourceArg arg);
    
    int deleteByPrimaryKey(String id);
    
}